# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdegraphics-mobipocket
pkgver=20.04.3
pkgrel=0
pkgdesc="A collection of plugins to handle mobipocket files"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://www.kde.org/applications/graphics/"
license="GPL-2.0-or-later"
depends_dev="qt5-qtbase-dev kio-dev"
makedepends="$depends_dev extra-cmake-modules"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdegraphics-mobipocket-$pkgver.tar.xz"
subpackages="$pkgname-dev"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="d9f0c3e330c52ae7451a6092ed5410bd0de40f19cfea632c0a20c04c08d458df43a0e46b4d939740f1be6e433a8a5602a757e221a66134af296e9b7140e4ffaf  kdegraphics-mobipocket-20.04.3.tar.xz"
